<?php use_stylesheet('/sfDoctrinePlugin/css/global.css')?>
<?php use_stylesheet('/sfDoctrinePlugin/css/default.css')?>
<div class="wrapper">
  <div class="wall_background">
    <div class="content">
      <h2>本站目前共发布信息 <?php echo $sum;?> 条</h2>
      <h3>工作动态列表</h3>
      <table class="Site_overview_table_1">
        <tr>
          <th>类别</th>
          <th>总数</th>
          <th>未激活数</th>
        </tr>
    <?php foreach ($news as $newsone):?>
        <tr>
            <td><?php echo $newsone->getName()?></td>
            <td><?php echo $newsone->getAmount()?></td>
            <td><?php echo $newsone->getAmountByActiveStatus(FALSE)?></td>
        </tr>
    <?php endforeach;?> 
      </table>
      <h3>营养学堂列表</h3>
      <table class="Site_overview_table_2">
        <tr>
          <th>类别</th>
          <th>总数</th>
          <th>未激活数</th>
        </tr>
    <?php foreach ($schools as $school):?>
        <tr>
            <td><?php echo $school->getName()?></td>
            <td><?php echo $school->getAmount()?></td>
            <td><?php echo $school->getAmountByActiveStatus(FALSE)?></td>
        </tr>
    <?php endforeach;?> 
      </table>
    </div>
    <!--End content-->
  </div><!--End wall_background-->
</div><!--End wrapperr-->
